<?python
from worde import plugins
from cherrypy import request
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${post.title} -- ${tg.get_config("blog title")}</title>
</head>
<body>
  <div id="content-post">
    <h2>${post.title}</h2>
    <p class="metadata">
      <span class="author">${post.author}</span>
      <span class="date">${post.created}</span>
      <span class="tags">${post.tags}</span>
    </p>
    <p class="content">${XML(plugins.render(post.text, request))}</p>
    <ol id="comments">
      <li py:for="comment in comments" py:if="comment.status=='published'">
        <h3>${comment.title}</h3>
        <p class="metadata">
          <a href="${comment.authorlink}" class="author">${comment.author}</a>
          <span class="date">${comment.created}</span>
        </p>
        <p>${XML(plugins.render_comment(comment.text, request))}</p>
      </li>
    </ol>
    <p id="commentform" py:content="commentform(data)" />
  </div>

</body>
</html>
